<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>文章列表--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/public.css" media="all" />
</head>

<body>
    <!-- <div class="layui-collapse" lay-filter="test">
        <div class="layui-colla-item">
            <h2 class="layui-colla-title"><span class="layui-badge-dot" style="margin-right:10px"></span><span class="userName">2018.03.12</span><span style="float:right">2018.03.12</span></h2>
        </div>
    </div> -->
    <div class="layui-collapse" id="sendMessage" lay-filter="test">
    </div>
    <!-- <div class="sendMessage">

    </div> -->
    <script type="text/javascript" src="../../layui/layui.js"></script>
    <script type="text/javascript" src="../../js/common.js"></script>

    <script type="text/javascript" src="sendMessage.js"></script>

    <script>
        layui.use(['element', 'layer'], function() {
            var element = layui.element;
            var layer = layui.layer;

            //监听折叠
            element.on('collapse(test)', function(data) {
                layer.msg('展开状态：' + data.show);
                element.init()

            });
            changes = function(e) {
                console.log("------")
                console.log(e);
            };
        });
    </script>
</body>

</html>